import type { pageInfoType, QuestionCheckboxPropsType, QuestionInfoPropsType, QuestionInputPropsType, QuestionParagraphPropsType, QuestionRadioPropsType, QuestionTextareaPropsType, QuestionTitlePropsType } from "./type";


///默认值

export const defaultPageInfo: pageInfoType = {
   title: "",
   desc: "",
   js: "",
   css: "",
}

export const defaultCheckboxProps: QuestionCheckboxPropsType = {
    title: "多选标题",
    options:[
      {label:"选项1",value:"1",checked:false},
      {label:"选项2",value:"2",checked:false},
      {label:"选项3",value:"3",checked:false},
    ],
    isVertical: false,
}

export const defaultRadioProps: QuestionRadioPropsType = {
   title: "单选标题",
   options:[
     {label:"选项1",value:"1"},
     {label:"选项2",value:"2"},
     {label:"选项3",value:"3"},
   ],
   value:""
}

export const defaultInputProps: QuestionInputPropsType = {
  title: '请输入框标题',
  placeholder: "请输入...",
}

export const defaultTextareaProps: QuestionTextareaPropsType = {
  title:'多行输入标题',
  placeholder:"请输入..."
}

export const defaultTitleProps: QuestionTitlePropsType ={
   text: '一行标题',
   level: 1 as 1|2|3 ,
   isCenter: false,
}


export const defaultInfoProps: QuestionInfoPropsType = {
  title:"问卷标题",
  desc:"问卷描述..."
}


export const defaultParagraphProps: QuestionParagraphPropsType={
  text: '一行文字',
  isCenter: false
}
